export interface BasicInfo {
  supplierNum: number
  orderInNum: number
  orderInAmount: number
  customerNum: number
  orderOutNum: number
  orderOutYoyNum: number
  orderOutAmount: number
  orderOutYoyAmount: number
  lowInventoryNum: number
  orderOutOverdueNum: number
  outstandingReceivablesNum: number
}

interface DataInfo {
  name: string
  value1: string
  value2: string
}

export type OrderInInfo = DataInfo[]
export type OrderOutInfo = DataInfo[]
export type CustomerInfo = Record<string, string>

export interface ERPAnalysis {
  orderInInfo: OrderInInfo
  orderOutInfo: OrderOutInfo
  customerInfo: CustomerInfo
}

export type ProductInfo = DataInfo[]
export type ProvinceSales = DataInfo[]

export interface ERPRank {
  productInfo: ProductInfo
  provinceSales: ProvinceSales
}

export type CustomerHealth = Record<'old' | 'new', string>
export type CustomerConversion = Record<'old' | 'new', string>

export interface ERPCustomer {
  customerHealth: CustomerHealth
  customerConversion: CustomerConversion
}
